package com.traffic.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.traffic.dao.LisenceDao;
import com.traffic.domain.Lisence;
import com.traffic.service.LisenceService;

@Service
public class LisenceServiceImpl implements LisenceService{
	@Resource
    private LisenceDao lisenceDao;
	@Override
	public Lisence findByLisenceId(Long lisenceId) {
		
		return lisenceDao.getById(lisenceId);
	}
	@Override
	public void update(Lisence lisence) {
		lisenceDao.update(lisence);
	}

}
